<?php
/** @var FormController $this */
/** @var Form $model */


$this->pageTitle = Form::label(2);
$this->breadcrumbs = array(
    Yii::t('app', 'Dashboard') => Yii::app()->homeUrl,
    Form::label(2)=>array('default/index'),
    $this->pageTitle,
);
$this->menu=array(
    array('label' => Yii::t('noseyModule.app', 'Manage'), 'icon' => 'list','url' => array('default/index')),
    array('label' => Yii::t('noseyModule.app', 'Create'),'icon' => 'plus', 'url' => array('form/create')),
//    array('label' => CHtml::encode($model),'icon' => 'icon-asterisk' ,'url' => array('form/update','id'=>$model->id), 'active'=>true),
);

Yii::app()->clientScript->registerCssFile($this->module->assetsUrl . '/css/styles.css');
?>

<div class="widget blue">
    <div class="widget-title">
        <h4><i class="icon-pencil"></i> <?php echo Yii::t('noseyModule.app', 'Update') . ' ' . Form::label().': '; ?><strong> <?php echo CHtml::encode($model) ?></strong></h4>
        <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <!--a href="javascript:;" class="icon-remove"></a-->
        </span>
     </div>
    <div class="widget-body">
        <?php if($model->id): ?>
        <!--div class='alert alert-info'>
            <strong><?php echo Yii::t('noseyModule.app', 'Path to form') ?>:</strong>
            <?php echo $this->createAbsoluteUrl('default/submit',array('id'=>$model->id)); ?>&eid=[<?php // echo Yii::t('noseyModule.app', 'entity id')?>]
        </div-->
        <?php endif; ?>
        
        <?php echo $this->renderPartial('_form', array('model' => $model, 'fields' => $fields)); ?>
    </div>
</div>
